package com.shijiu.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author xlj
 * @Date Created in  2023/4/21 16:36
 * @DESCRIPTION:
 * @Version V1.0
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Goods {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("货物名称")
    private String name;

    @ApiModelProperty("所属商家")
    private String shopId;

    @ApiModelProperty("库存")
    private Integer stores;

    @ApiModelProperty("单价")
    private BigDecimal prince;

    @ApiModelProperty("单位")
    private String unit;

    @ApiModelProperty("商品种类：0 ：  1： 2： 3：")
    private String species;

    @ApiModelProperty("图片")
    private String img;

    @ApiModelProperty("0：上架  1：下架")
    private String shelf;

    @ApiModelProperty("0：正常  1：禁止售卖")
    private String isDeleted;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty("更新时间")
    private Date updateTime;

}
